export default class FileOperRsVO  { 
  path!:string;
  originName!:string;
  newFileName!:string;
  storageType!:string;


  /**通过JSONObject创建实例对象 */
  public static getInstanceByJSONObj(jsonObj:any):FileOperRsVO{  
    let instance=new FileOperRsVO()  
    return Object.assign(instance, jsonObj) 
  }


  /** 通过属性参数创建实例对象 */
  public static getInstanceByParam(path:string,originName:string
                                   ,newFileName:string,storageType:string){ 
    let instance=new FileOperRsVO()  
    instance.path=path;
    instance.originName=originName;
    instance.newFileName=newFileName;
    instance.storageType=storageType;
    return instance 
  }


  /** 类属性的申明方法(适用于直接用到Class.fieldName的场景) */
  public static getFieldName( ){ 
    return { path:"path",originName:"originName",newFileName:"newFileName",storageType:"storageType" } 
  } 
}

